package handler

import "github.com/gin-gonic/gin"

func Logan(c *gin.Context) {
	tel := c.PostForm("tel")
	password := c.PostForm("password")

	if len(tel) == 0 || len(password) == 0 {
		c.JSON(200, gin.H{
			"code": 500,
			"msg":  "手机号码格式不正确",
		})
		return
	}
	c.JSON(200, gin.H{
		"code": 200,
		"msg":  "注册成功",
	})
	return
}
